//  -------------------- iSharePoint -------------------- //
// 
//  Company:	IT Complex, LLC
//  Project:	Smart.Common
//  File name:	MetaFormFieldCtrl.cs
//  Developer:	Solomatov Igor
//  Created:	15.04.2012
// 
//  -------------------- iSharePoint -------------------- //

namespace Smart.Common.Forms
{
	/// <summary>
	/// Form field control metadata
	/// </summary>
	public class MetaFormFieldCtrl : MetaFormEditableCtrl
	{
		/// <summary>
		/// Field
		/// </summary>
		public MetaField Field { get; set; }

		/// <summary>
		/// Condition
		/// </summary>
		public string Condition { get; set; }

		/// <summary>
		/// Field edit template name
		/// </summary>
		public string EditTemplateName { get; set; }

		/// <summary>
		/// Field display template name
		/// </summary>
		public string DisplayTemplateName { get; set; }

		/// <summary>
		/// Field control metadata
		/// </summary>
		public MetaFormFieldCtrl(MetaField field)
			: base(field.Title, field.Name)
		{
			Field = field;
		}
	}
}